insert in a trie